// 1.创建一个Buffer对象
// 8个字节大小的buffer内存空间
const buffer1 = Buffer.alloc(8);
console.log(buffer1);

// 2.手动对每个字节进行访问
console.log(buffer1[0]);
console.log(buffer1[1]);

// 3.手动对每个字节进行操作
buffer1[0] = 100;
buffer1[1] = 0x62;
console.log(buffer1);
console.log(buffer1.toString());

buffer1[2] = "m".charCodeAt();
console.log(buffer1);
